package com.mrlee.mapper;

import com.mrlee.bean.Cost;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CostMapper {

    int insert(Cost record);

    int insertSelective(Cost record);

    List<Cost> selectAllCost();

    List<Cost> selectAllOpenCost();

    List<Cost> selectAllAscBybc();

    List<Cost> selectAllDescBybc();

    List<Cost> selectAllAscBybd();

    List<Cost> selectAllDescBybd();

    int deleteCostById(@Param("id")Integer id);

    int updateStById(@Param("st")String st,@Param("id")Integer id);

    Cost selectById(@Param("id")Integer id);

    int updateByPrimaryKeySelective(Cost record);


}